import React from "react";
import { connect } from "dva";
import LineMarkerEcharts from "./LineMarkerEcharts";
import Average from "./Average.jsx";
// import echarts from 'echarts/lib/echarts';
import Excel from "./Excel";


function AveragePage({ dispatch, dataArr }) {
 

  return (
    <div>
      <Excel />
      {dataArr.length > 1 ? <Average /> : null}
        
    </div>
  );
}

export default connect(({ echart }) => ({ ...echart }))(AveragePage);